/*
 * CodeToken.java  0.4.0 / Oct 23, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
package com.cute4j.swingx.text.code;

/**
 * Code Token.
 *
 * @author Slobodan Vrkacevic
 * @version 0.4.0
 */
public class CodeToken {

// Public Static Fields. -------------------------------------------------------

  /**
   * <tt>Comment start</tt> token type (the value is {@value}).
   */
  public static final int COMMENT_START = 0;

  /**
   * <tt>Comment end</tt> token type (the value is {@value}).
   */
  public static final int COMMENT_END = 1;

  /**
   * <tt>Inline comment</tt> token type (the value is {@value}).
   */
  public static final int INLINE_COMMENT = 2;

  /**
   * <tt>Number</tt> token type (the value is {@value}).
   */
  public static final int NUMBER = 3;

  /**
   * <tt>Char</tt> token type (the value is {@value}).
   */
  public static final int CHAR = 4;

  /**
   * <tt>String</tt> token type (the value is {@value}).
   */
  public static final int STRING = 5;

  /**
   * <tt>Keyword</tt> token type (the value is {@value}).
   */
  public static final int KEYWORD = 6;

  /**
   * <tt>End of comment block</tt> token type (the value is {@value}).
   */
  public static final int EOCB = 7;

  /**
   * <tt>End of file</tt> token type (the value is {@value}).
   */
  public static final int EOF = 8;

// Public Fields. --------------------------------------------------------------

// CS:OFF

  /**
   * The token start.
   */
  public int start;

  /**
   * The token length.
   */
  public int length;

  /**
   * The token type.
   */
  public int type;

// CS:ON

}
